<template>
  <div class="bpl1-bg">
    <div class="el-flex">
      <div class="co-title-name">
        <img src="@/assets/cockpit/subdivision/securityOneMap/item8-title.png" alt="" />
      </div>
      <div class="co-title-right">
        <div class="co-title-breathe"><i></i><i></i><i></i><i></i><i></i><i></i></div>
      </div>
    </div>
    <div class="content">
      <div class="top el-flex">
        <div class="item5_2-icon el-mr-2">
          <img src="@/assets/cockpit/subdivision/securityOneMap/item8-1-icon.png" alt="" />
        </div>
        <div class="right">
          <div class="right-top">
            <span>项目总数</span>
            <p><b>809</b>栋</p>
          </div>
          <div class="table">
            <div class="table-col">
              <p class="table-title">临坡建房数</p>
              <p class="table-value"><b>10</b>栋</p>
            </div>
            <div class="table-col">
              <p class="table-title">临坡建房数</p>
              <p class="table-value yellow"><b>20</b>栋</p>
            </div>
            <div class="table-col">
              <p class="table-title">临坡且切坡建房数</p>
              <p class="table-value red"><b>30</b>栋</p>
            </div>
          </div>
        </div>
      </div>
      <div class="bottom">
        <div class="tag"><span>从事经营性活动</span> <span><b>512</b>栋</span></div>
        <div class="tag"><span>在1:1万地质灾害调查已开展工作</span> <span><b>512</b>栋</span></div>

      </div>
    </div>
  </div>
</template>

<script lang="ts">
import { Vue, Component } from 'vue-property-decorator'
import { CockpitApi } from '@/api/cockpit'

interface obj {
  count: string
}

@Component({
  name: 'Item6'
})
export default class Item6 extends Vue {}
</script>
<style lang="scss" scoped>
@import '~@/styles/cockpit.scss';
.bpl1-bg {
  width: 100%;
  height: 100%;
  padding: 16px;
  background: url('~@/assets/cockpit/subdivision/administration/item-bg4.png') no-repeat 0/ 100% 100%;
  position: relative;
  display: flex;
  flex-direction: column;

  .co-title {
    flex-shrink: 0;
  }
}
.content {
  margin-top: 10px;
  padding-left: 12px;
  padding-right: 12px;
}
.right {
  flex-grow: 1;
}
.right-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 17px;
  background: linear-gradient(270deg, rgba(0, 144, 185, 0.45) 0%, rgba(0, 144, 185, 0) 81%);
  color: #fff;
  span {
    display: inline-block;
    font-size: 16px !important;
    line-height: 22px;
  }
  b {
    font-size: 30px !important;
    line-height: 22px;
    font-weight: bold;
  }
}
.table {
  display: flex;
  color: #fff;
  margin-top: 8px;
  font-size: 12px;
  .table-title {
    color: #bffeff;
  }
  .table-col {
    width: 33.33%;
  }
  .table-value {
    b {
      display: inline-block;
      margin-right: 4px;
      font-weight: bold;
      font-size: 16px;
    }
  }
}
.bottom {
  flex-wrap: wrap;
  margin-top: 16px;
  .tag {
    height: 32px;
    opacity: 1;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    margin-bottom: 8px;
    > span {
      color: #fff;
      b {
        display: inline-block;
        margin-right: 3px;
        font-size: 16px !important;
        font-weight: bold;
        font-family: 'Roboto';
      }
      &:nth-of-type(1) {
        margin-left: 10px;
      }
      &:nth-of-type(2) {
        margin-left: auto;
      }
    }
    &::before {
      content: '';
      width: 7px;
      height: 7px;
      opacity: 1;
      background: rgba(249, 240, 212, 1);
      box-shadow: 0 0 8px 0 rgba(240, 176, 74, 1);
      transform: rotate(45deg);
    }
  }
}
</style>
